const getClassModel = require("../models/getClass_model")
const Result = require("../beans/result")
// 获取热门电视剧
function getClasslist(value, msg, callback) {

    getClassModel.getData(value,(err, data) => {
        if (err) {
            callback(new Result(err, null, msg[0], 401))
        } else {
            callback(new Result(null, data, msg[1], 200))
        }
    })

}
module.exports = {
    getClasslist
}